<meta charset="UTF-8">
<script src="../js/jquery.min.js"></script>
<link rel="stylesheet" href="../css/font.css">
<link rel="stylesheet" href="../css/common.css">
<link rel="stylesheet" href="../css/xadmin.css">
<script src="../lib/layui/layui.js" charset="utf-8"></script>
<iframe width="100%" height="100%" frameborder="0"  scrolling="auto" id="jiazai"></iframe>
<script>
var layer
	 layui.use(['layer'],
			 function() {
					 layer = layui.layer;
					 layer.msg('paperloading……', { icon: 16, shade: 0.01,shadeClose:false,time:2000 });

					//  alert(layer)

					 //执行一个laydate实例

			 });
function request(strParame) {
	var args = new Object( );
	var query = location.search.substring(1);

	var pairs = query.split("&"); // Break at ampersand
	for(var i = 0; i < pairs.length; i++) {
	var pos = pairs[i].indexOf('=');
	if (pos == -1) continue;
	var argname = pairs[i].substring(0,pos);
	var value = pairs[i].substring(pos+1);
	value = decodeURIComponent(value);
	args[argname] = value;
	}
	return args[strParame];
}
var url2=request("url2")
var huizongurl
 huizongurl=request("url2")+"?codeurl="+request("url1")
if (url2.indexOf("?")>-1){
	huizongurl=request("url2")+"&codeurl="+request("url1")
}
huizongurl+='&qid='+request("qid")
huizongurl+='&Tdtoken='+request("Tdtoken")
huizongurl+='&recource='+request("url1")
huizongurl+='&endtime='+request("endtime")
huizongurl+='&startime='+request("startime")
// alert(huizongurl)

document.getElementById("jiazai").src=huizongurl
document.getElementById("jiazai").onload = function(){

//iframe加载完立即发送一条消息

// iFrame.contentWindow.postMessage({msg: 'MessageFromIndexPage'},'\*');
setInterval(function(){
	document.getElementById('jiazai').contentWindow.postMessage({msg: '90001'},'\*');
},100)
}


</script>
